export const typeOptions = {
  0: '否',
  1: '是',
}
// 查询列表
export const tableColumn = [
  {
    label: '',
    type: 'selection',
    width: 80,
  },
  {
    label: '序号',
    type: 'index',
    width: 60,
  },
  {
    label: '业务菜单',
    prop: 'typeName',
    minWidth: 150,
  },
  {
    label: '功能菜单',
    prop: 'threeLevelMenuName',
    minWidth: 150,
  },
  {
    prop: 'ruleName',
    label: '规则名称',
    minWidth: 180,
    'show-overflow-tooltip': true,
  },
  {
    prop: 'ruleContent',
    label: '规则描述',
    minWidth: 180,
    'show-overflow-tooltip': true,
  },
  {
    prop: 'mailStatus',
    label: '邮箱是否设置',
    width: 120,
    formatter: (row) => {
      return typeOptions[row.mailStatus]
    },
  },
  {
    prop: 'openStatus',
    label: '是否启用',
    width: 120,
    formatter: (row) => {
      return typeOptions[row.type]
    },
  },
  {
    prop: 'emailSeedStatus',
    label: '邮箱发送设置',
    width: 120,
    formatter: (row) => {
      return typeOptions[row.type]
    },
  },
  {
    prop: 'operation',
    label: '操作',
    width: 100,
    fixed: 'right',
  },
]
// tab
export const toDoTabList = [
  {label: '待办事项设置', badgeValue: 0, type: 0},
  {label: '通知设置', badgeValue: 0, type: 1},
  {label: '效期提醒设置', badgeValue: 0, type: 2},
]
// 接收者列表头
export const usertableColumn = [
  {
    label: '序号',
    type: 'index',
    width: 60,
  },
  {
    label: '接收者',
    prop: 'userName',
    minWidth: 150,
  },
  {
    label: '邮箱地址',
    prop: 'mail',
    minWidth: 150,
  },
]
